var _n27;
var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_GameManager = _n27 = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.switchBtPos = false;
  }
  babel_createClass(_ctor, [{
    key: "changeOrientation",
    value: function changeOrientation() {
      cc.director.pause();
      var e = cc.view.getFrameSize().width;
      var t = cc.view.getFrameSize().height;
      if (e > t) {
        cc.view.setFrameSize(e, t);
        cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
      } else {
        cc.view.setFrameSize(t, e);
        cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
      }
      cc.director.resume();
    }
  }], [{
    key: "instance",
    get() {
      this._instance || (this._instance = new _n27());
      return this._instance;
    }
  }]);
  return _ctor;
}();
def_GameManager._instance = null;
def_GameManager = _n27 = cc__decorate([ccp_ccclass], def_GameManager);
exports.default = def_GameManager;